Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update solc version #20

Merged
merged 11 commits into from
Nov 10, 2024
Merged

feat: update solc version #20

merged 11 commits into from
Nov 10, 2024

Conversation

xenide
Copy link
Contributor

@xenide xenide commented Nov 9, 2024

  • tested both solady's and openzeppelin's ReentrancyGuardTransient. This time round solady's one is actually more inefficient because it checks if we're on mainnet and only uses it there

    • at this time solmate doesn't have an equivalent version yet
  • with the new compiler, it supports using require with custom errors now. Changed our code to that as it is more idiomatic solidity

  • added a rule in solhint for now as this require with custom error thing is only recently supported. see allow gas-custom-errors rule to properly handle custom errors inside require statements protofire/solhint#602

@xenide xenide marked this pull request as ready for review November 9, 2024 09:43
@xenide xenide requested a review from OliverNChalk November 9, 2024 09:43
Copy link
Contributor

@OliverNChalk OliverNChalk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to add a note about only supporting mainnet

@xenide
Copy link
Contributor Author

xenide commented Nov 10, 2024

Do we want to add a note about only supporting mainnet

added note in README regarding this, thanks

@xenide xenide merged commit 70f6deb into dev Nov 10, 2024
5 checks passed
@xenide xenide deleted the feat/enhancements branch November 10, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants